 viewtopic.php 





$poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : '';


 


$poster_ratio = ( $postrow[$i]['u_up_total'] > 0 || $postrow[$i]['u_down_total'] > 0 ) ? "U ".humn_size($postrow[$i]['u_up_total']).", D ".humn_size($postrow[$i]['u_down_total']) : '';

$upload = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $postrow[$i]['u_up_total'] : 0;          DL\UL    .
$download = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $postrow[$i]['u_down_total'] : 0;

if( $postrow[$i]['u_down_total'] > 0 ) {
          $poster_ratio = round( ($postrow[$i]['u_up_total']+$postrow[$i]['u_bonus_total']) / $postrow[$i]['u_down_total'], 3);
          if( ($postrow[$i]['u_up_total']+$postrow[$i]['u_bonus_total']) > $postrow[$i]['u_down_total'] ) {
                  if( $poster_ratio > 3000 ) $poster_ratio = floor($poster_ratio/1000) . 'K';
                  $poster_ratio = '<font color="green">' . $poster_ratio . '</font>';
          } elseif( $postrow[$i]['u_down_total'] > 2147483648 && ($postrow[$i]['u_up_total']+$postrow[$i]['u_bonus_total']) < $postrow[$i]['u_down_total'] * 0.3 )
                  $poster_ratio = '<font color="red">' . $poster_ratio . '</font>';
          $poster_ratio = 'Ratio: ' . $poster_ratio;
      } else $poster_ratio = '';







'POSTER_JOINED' => (SHOW_POSTER_JOINED) ? $poster_joined : '',
 
:
'POSTER_RATIO' => $poster_ratio,

:
'EDITED_MESSAGE' => $l_edited_by,
 
:
 'UPLOAD' => $lang['Topic_Stats_UL'] . ': ' . humn_size($upload),
 'DOWNLOAD' => $lang['Topic_Stats_DL'] . ': ' . humn_size($download),
 'UP_DOWN_RATIO' => $lang['Topic_Stats_Ratio'] . ': ' . $ratio,
 'UP_DOWN_RATIO'    => $up_down_ratio,



 viewtopic_body.tpl 




<span style="postdetails">{postrow.POSTER_JOINED}
</span>
 


                                  <span style="postdetails; white-space: nowrap">{postrow.POSTER_RATIO}
</span>
                                   
                                             
<font color=#FF0000> {postrow.UPLOAD}</font>
<FONT color=#008000>{postrow.DOWNLOAD}</font>
{postrow.UP_DOWN_RATIO}